#include <conio.h>
#include <stdio.h>
#include <windows.h>
void xuatMang(int*a, int n){
	for(int i = 0; i< n; i++){
		printf("\t %d",*(a+i));
	}
}
int main(){
	FILE *fileRead;
	FILE *fileWrite;
	int n;
	int a[10];
	// Mo 
	fileRead = fopen("D:\\test3.txt","r");
	fileWrite  = fopen("D:\\test4.txt","w");
	if(fileRead == NULL || fileWrite == NULL){
		printf("Khong tim thay file");
		getch();
		exit(0);
	}else{
		fscanf(fileRead,"%d",&n);
		printf("\nSo phan tu: %d", n);
		for(int i = 0; i < n ; i++){
			fscanf(fileRead,"%d",&a[i]);
		}
		fprintf(fileWrite,"%s","\n Mang doc duoc la:\n");
		for(int i = 0; i < n ; i++){
			fprintf(fileWrite,"%d",a[i]);
		}
	}
	// DOng
	fclose(fileWrite);
	fclose(fileRead);
}
